package cn.laixueit.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping("/home")
    public String home(){

        return "home";
    }

    @GetMapping("/to/{pagename}")
    public String toPageName(@PathVariable("pagename")String pagename){
        return pagename;
    }
}
